package com.yesep.learn.design.behavioral.state;

public enum LightState {
    RED(new RedLightState()), GREEN(new GreenLightState()), YELLOW(new YellowLightState());

    ILightState state;

    LightState(ILightState state) {
        this.state = state;
    }

    public ILightState getState() {
        return state;
    }

}
